<?php

	$f_name				= $_GET['text'];
	$l_name				= $_GET['text2'];
	$size				= 15;
	$dim				= getimagesize($file);
	$imagewidth			= 200;
	$imageheight		= 40;
	$image 				= imagecreate($imagewidth, $imageheight);
	$colourBlack = imagecolorallocate($image, 66, 65, 73);
	imagecolortransparent($image, $colourBlack);
	$blue 				= imagecolorallocate($image, 255, 255, 255);
	$red 				= imagecolorallocate($image, 238, 164, 0);
	$font = "Frabk.TTF";
	
	//imagealphablending($image, true);
	 	
	$size = imagettfbbox(15, 0, $font, $f_name);
  	$xsize = abs($size[0]) + abs($size[2]);
  	$ysize = abs($size[5]) + abs($size[1]);
    	
	imagettftext($image, 15, 0, 15, 23, $blue, $font, $f_name);
	imagettftext($image, 15, 0, abs($size[2])+20, 23, $red, $font, $l_name);

	header('Content-type: image/png');
	imagepng($image);
	imagedestroy($image);
?>